package com.finance.system;

import com.spring4all.swagger.EnableSwagger2Doc;
import lombok.extern.log4j.Log4j;
import org.flywaydb.core.Flyway;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;



@SpringBootApplication(scanBasePackages = "com.finance.system")
@EnableSwagger2Doc
@ConditionalOnClass(Flyway.class)
@MapperScan("com.finance.system.*.mapper")
@EnableWebSecurity
@Log4j
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
        log.error("cc");
    }
}
